home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 …ember: Reference Library / Dev.CD Dec 00 RL Disk 1.toast / pc / technical documentation / develop / develop issue 27 / develop issue 27 code / speech recognition.frameworks / cdocdemo w. speech / cdocspeech.h < prev    next >
Encoding:
Text File  |  1996-05-21  |  1.8 KB  |  57 lines

  1. // ===========================================================================
  2. //    CDocSpeech.h
  3. // ===========================================================================
  4.  
  5. #pragma once
  6.  
  7. #include "SpeechRecognition.h"
  8.  
  9. //constants
  10. const ResIDT    rSTR_LMNames        = 400;    //ID of STR# resource with LM names
  11. const short        kStr_GApplLM        = 1;    //indices w/in resource
  12. const short        kStr_GUnivLM        = 2;
  13. const short        kStr_UFileLM        = 3;
  14. const short        kStr_GDocuLM        = 4;
  15. const short        kStr_DFileLM        = 5;
  16. const short        kStr_DEditLM        = 6;
  17.  
  18. const ResIDT    kSTR_UFileCmds        = 500;    //ID of STR# resource with universal file phrases
  19. const short        kStr_New            = 1;    //indices w/in resource
  20. const short        kStr_Open            = 2;
  21. const short        kStr_PageSetup        = 3;
  22. const short        kStr_Quit            = 4;
  23.  
  24. const ResIDT    kSTR_DFileCmds        = 501;    //ID of STR# resource with document file phrases
  25. const short        kStr_Close            = 1;    //indices w/in resource
  26. const short        kStr_Save            = 2;
  27. const short        kStr_SaveAs            = 3;
  28. const short        kStr_Revert            = 4;
  29. const short        kStr_Print            = 5;
  30. const short        kStr_PrintOne        = 6;
  31.  
  32. const ResIDT    kSTR_DEditCmds        = 502;    //ID of STR# resource with universal edit phrases
  33. const short        kStr_Undo            = 1;    //indices w/in resource
  34. const short        kStr_Cut            = 2;
  35. const short        kStr_Copy            = 3;
  36. const short        kStr_Paste            = 4;
  37. const short        kStr_Clear            = 5;
  38. const short        kStr_SelectAll        = 6;
  39.  
  40. const ResIDT    kSTR_UApplCmds        = 503;    //ID of STR# resource with Apple menu phrases
  41. const short        kStr_About            = 1;    //indices w/in resource
  42.  
  43. #define kEnableObj    true
  44. #define kDisableObj    false
  45.  
  46.  
  47. class CDocSpeech {
  48.  
  49. public:
  50.                              CDocSpeech();
  51.     virtual                     ~CDocSpeech();
  52.     static pascal OSErr      HandleSpeechBegunAppleEvent (AppleEvent *theAEevt, AppleEvent* reply, long refcon);
  53.     static pascal OSErr      HandleSpeechDoneAppleEvent (AppleEvent *theAEevt, AppleEvent* reply, long refcon);
  54.  
  55. private:
  56.             OSErr            MakeLanguageModels (void);
  57. };